package cn.lr.org.mapper;

import cn.lr.basic.mapper.BaseMapper;
import cn.lr.org.domain.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 部门Mapper层
 */
public interface EmployeeMapper extends BaseMapper<Employee> {
    Employee loadByUsername(String username);

    void removeRole(Long id);

    void saveRole(@Param("id") Long id, @Param("roles") List<Long> roles);

    Employee loadByLoginInfoId(Long id);
}
